package com.test.shop.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("com.test.shop.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
//开启缓存功能
@EnableCaching
//开启远程调用功能
@EnableFeignClients(basePackages = "com.test.shop.product.feign")
public class ShopProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShopProductApplication.class, args);
    }

}
